#pragma strict
private var webcamTexture : WebCamTexture;


/*function Start ()
{ 
	 //webcamTexture = WebCamTexture(Screen.width, Screen.height, 30);
	 webcamTexture = WebCamTexture();
	 renderer.material.mainTexture = webcamTexture;
	 webcamTexture.Play();
}*/

function Awake ()
{ 
	if (WebCamDevice == null)
	{
		return;
	}
	webcamTexture = WebCamTexture(Screen.width, Screen.height, 1);
	renderer.material.mainTexture = webcamTexture;
	webcamTexture.Play();
}
